import { ICompany } from "../../../../../shared/interfaces/ICompanyBase.interface";

export class RiskCompanyModel implements ICompany {
    public id: string;
    public assessmentCode: string;
    public availability: number;
    public comments: RiskCompanyCommentsModel;
    public companyName: string;
    public country: string;
    public exchangeTicker: string;
    public exposure: number;    
    public issues: RiskCompanyIssues;
    public lastUpdate: string;
    public managedRisk: number;
    public riskRating: number;
    public subPeerGroup: string;
    public subPeerGroupId: number;
    public managementRisk: number;
    public subIndustryAverageExposure:number;
    public subIndustryAverageManagement:number;
    public narrative: string;
}

class RiskCompanyCommentsModel {
    public businessModel: string;
    public esgRiskManagement: string;
    public exposure: string;
    public analystViewOverallAssessment:string;
    public overallExposureAssessment:string;
    public overallManagementAssessment:string;
}

class RiskCompanyIssues {
    public baseline: RiskCompanyMei;
    public others: RiskCompanyMei[];
}

export class RiskCompanyMei {
    public events: string[];
    public exposure: RiskManagement;
    public externalId: number;
    public isMain: boolean;
    public management: RiskManagement;
    public name: string;
    public type: string;
    public unmanged: RiskManagement;
}

class RiskManagement {
    public average: number;
    public clusterName: string;
    public value: number;
}

